# -*- coding: utf-8 -*-
"""
Created on Wed Sep 25 15:51:06 2019

@author: XCL01
"""

s1 = set([1, 2, 3])
s2 = set([2, 3, 4])
print(s1 & s2, s1 | s2)